package cn.zhizihua.service;

import cn.zhizihua.pojo.Order;
import cn.zhizihua.vo.ResultBean;

public interface IOrderService extends IBaseService<Order> {

//    ResultBean add(T t);  //订单添加包含了订单详情的添加
//    ResultBean delete(Integer id); //订单删除包含了订单详情的批量删除

//    ResultBean update(T t);
//    ResultBean getById(Integer id);
//    ResultBean getAll();
//    ResultBean getByPage(BaseQuery baseQuery);
//    ResultBean batchDel(List<Integer> ids);

    /*
    通过订单编号查询订单详情
     */
    ResultBean getDetailsByOrderId(Integer orderId);

    ResultBean getOrderByUserId(Integer userId);
}
